class CreateRecommands < ActiveRecord::Migration
  def change
    create_table :recommands do |t|
      t.integer :user_id
      t.integer :recommander_id
      t.integer :terminal_id

      t.timestamps
    end
    add_index :recommands, :user_id, :unique => true
    add_index :recommands, :recommander_id
    add_index :recommands, :terminal_id
  end
end
